package com.zhc.dejingapi.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zhc.dejingapi.entity.QingProductionorderDetialEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

/**
 * @author zhc
 * @date 2024年10月21日 9:21
 */
@Data
public class QingProductionOrderVo {
    @TableId(value = "main_id", type = IdType.AUTO)
    private Long mainId;

    @ApiModelProperty("applyId")
    @TableField("applyId")
    private Long applyId;

    @ApiModelProperty("erp订单Id")
    @TableField("erp_id")
    private String erpId;

    @ApiModelProperty("订单池应用编号")
    @TableField("order_pool_code")
    private String orderPoolCode;

    @ApiModelProperty("生产订单应用编号")
    @TableField("order_code")
    private String orderCode;

    @ApiModelProperty("订单日期")
    @TableField("order_date")
    private LocalDate orderDate;

    @ApiModelProperty("开工日期")
    @TableField("start_date")
    private LocalDate startDate;

    @ApiModelProperty("完工日期")
    @TableField("end_date")
    private LocalDate endDate;

    @ApiModelProperty("生产订单状态")
    @TableField("order_sts")
    private String orderSts;

    @ApiModelProperty("存货编码")
    @TableField("inv_code")
    private String invCode;

    @ApiModelProperty("存货名称")
    @TableField("inv_name")
    private String invName;

    @ApiModelProperty("规格型号")
    @TableField("inv_type")
    private String invType;

    @ApiModelProperty("生产数量")
    @TableField("prod_num")
    private Integer prodNum;

    @ApiModelProperty("主计量单位编码")
    @TableField("unit_code")
    private String unitCode;

    @ApiModelProperty("主计量单位名称")
    @TableField("unit_name")
    private String unitName;

    @ApiModelProperty("生产订单类别")
    @TableField("prod_order_type")
    private String prodOrderType;

    @ApiModelProperty("生产订单号(ERP)")
    @TableField("prod_order_code")
    private String prodOrderCode;

    @ApiModelProperty("生产订单行号(ERP)")
    @TableField("prod_order_line_num")
    private String prodOrderLineNum;

    @ApiModelProperty("生产批号(ERP)")
    @TableField("batch_num")
    private String batchNum;

    @ApiModelProperty("累计派工数")
    @TableField("total_send_work_num")
    private Integer totalSendWorkNum;

    @ApiModelProperty("订单优先级")
    @TableField("orderpriority")
    private String orderpriority;

    @ApiModelProperty("派工进度")
    @TableField("deliveries_progress")
    private Integer deliveriesProgress;

    @ApiModelProperty("报工进度")
    @TableField("report_progress")
    private Integer reportProgress;

    @ApiModelProperty("累计下发数量")
    @TableField("total_deliveries_num")
    private Integer totalDeliveriesNum;

    @ApiModelProperty("订单池已转数量")
    @TableField("transfer_to_num")
    private Integer transferToNum;

    @ApiModelProperty("预入仓库名称")
    @TableField("pro_warehouse_name")
    private String proWarehouseName;

    @ApiModelProperty("预入仓库编码")
    @TableField("pro_warehouse_code")
    private String proWarehouseCode;

    @ApiModelProperty("当前数据提交时间")
    @TableField("predict_now_date")
    private LocalDate predictNowDate;

    @ApiModelProperty("历史数据最新提交时间")
    @TableField("predict_last_date")
    private LocalDate predictLastDate;

    @ApiModelProperty("启用状态")
    @TableField("enabledstatus")
    private String enabledstatus;

    @ApiModelProperty("物料清单Id")
    @TableField("bom_id")
    private Integer bomId;

    @ApiModelProperty("工艺路线编码")
    @TableField("process_route_code")
    private String processRouteCode;

    @ApiModelProperty("工艺路线名称")
    @TableField("process_route_name")
    private String processRouteName;

    @ApiModelProperty("生产部门名称")
    @TableField("production_department_name")
    private String productionDepartmentName;

    @ApiModelProperty("生产部门编码")
    @TableField("production_department_code")
    private String productionDepartmentCode;

    private List<QingProductionorderDetialEntity> qingProductionorderDetialEntityList;
}
